<script>
export default {
  props: {
    msg: {
      type: Number,
    },
    conpont: {
      type: Object,
    },
  },
  computed: {
    list() {
      return [...new Array(this.msg).keys()];
    },
  },
  render(h) {
    return (
      <div class="home">
        {`我是子组建，这是父组件传给我的值${this.msg}`}
        <p>这是父组件传给我的组件：</p>
        {h(this.conpont, { props: { list: this.list } })}
      </div>
    );
  },
};
</script>
<style  scoped>
.home {
  background-color: pink;
}
</style>